top of page

Galapagos Part 4 | Roof Openings

Now that we have the location of our openings, what we're going to need to do is cut our roof with these openings so that we can get our final roof geometry.  


Use the deconstruct be rep component and plug in our opening geometry. This allows us to extract the edges of the geometry. Then will use the project component to project the edges which are curves onto our Brep, which is our roof surface.  


Because the edges come in with the edges in separate branches, we also want to make sure to flatten the curves that come out of this projection. Use the surface split component in order to cut the roof surface with the opening curve.  


I'm going to now hide these components so that we can more clearly see the curves of the openings on our roof surface.  


Then we want to select only the remaining area of the roof. Because we have cut multiple openings each list will contain the geometry of multiple openings and the geometry of the remaining surface. We cannot select the first item in the list, because the order of the list may change. So what we can do instead is measure the area of each of the surfaces. And we know that our surface of the roof will always be the one with the largest area.  


To select the surface with the largest area, we sort our surfaces by their area. Our surfaces will be the values and our areas will be the keys. Use the list item component again to get the largest area. Because we know it will sort a to z or lowest to highest, we know we need the last item on the list. In Click on the index and set the integer to negative one- to get the last item in the list. Now if we hide these previews, we can see that we're previewing just the geometry with the hole cut into it. And I actually also need to turn off the preview of the roof.  


So now we have our geometry with our openings projected and they can move in the x and y direction based on the gene pool number sliders. The roof geometry with the holes will be the final output that we're looking at. So we can input this into a geometry component to make it easier to see . 

bottom of page